package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.domain.AirInfo;
import cn.wolfcode.luowowo.search.domain.FlightInfo;
import cn.wolfcode.luowowo.search.mapper.AirInfoMapper;
import cn.wolfcode.luowowo.search.mapper.FlightInfoMapper;
import cn.wolfcode.luowowo.search.service.IAirInfoService;
import cn.wolfcode.luowowo.search.service.IFlightInfoService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class AirInfoServiceImpl implements IAirInfoService{
    @Autowired
    private AirInfoMapper airInfoMapper;

    @Override
    public void save(AirInfo airInfo) {
        airInfoMapper.insert(airInfo);
    }

    @Override
    public List<AirInfo> selectByFlightId(Long fId) {
        return airInfoMapper.selectByFlightId(fId);
    }
}
